/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.testis.gui.mvc.model.testdesign;

import org.testis.gui.mvc.controller.testdesign.SelectSuiteController;
import org.testis.gui.mvc.model.AbstractModel;
import java.util.LinkedList;

/**
 *
 * @author selcuk
 */
public class SelectSuiteModel extends AbstractModel {

    private Boolean m_viewVisibility = false;
    private LinkedList<String> m_lastLoadedTestSuites = new LinkedList<String>();
    private LinkedList<String> m_lastLoadedDynamicMaps = new LinkedList<String>();
    private LinkedList<String> m_selectedTestSuites = new LinkedList<String>();
    private LinkedList<String> m_selectedDynamicMaps = new LinkedList<String>();

//    public static final String SELECTED_TESTSUITES_PROPERTY = "SelectedTestSuites";
//    public static final String SELECTED_DYNAMICMAPS_PROPERTY = "SelectedDynamicMaps";
    public SelectSuiteModel() {
    }

    public Boolean getViewVisibility() {
        return m_viewVisibility;
    }

    public void setViewVisibility(Boolean visibility) {
        boolean oldValue = m_viewVisibility;
        m_viewVisibility = visibility;
        firePropertyChange(SelectSuiteController.VIEWVISIBILITY_PROPERTY,
                oldValue,
                m_viewVisibility);
    }

    /**
     * @return the m_lastLoadedTestSuites
     */
    public LinkedList<String> getLastLoadedTestSuites() {
        return m_lastLoadedTestSuites;
    }

    /**
     * @param m_lastLoadedTestSuites the m_lastLoadedTestSuites to set
     */
    public void setLastLoadedTestSuites(LinkedList<String> list) {
        LinkedList<String> oldValue = m_lastLoadedTestSuites;
        m_lastLoadedTestSuites = list;
        firePropertyChange(SelectSuiteController.LAST_LOADED_TESTSUITES_PROPERTY,
                oldValue,
                m_lastLoadedTestSuites);
    }

    /**
     * @return the m_lastLoadedDynamicMaps
     */
    public LinkedList<String> getLastLoadedDynamicMaps() {
        return m_lastLoadedDynamicMaps;
    }

    /**
     * @param m_lastLoadedDynamicMaps the m_lastLoadedDynamicMaps to set
     */
    public void setLastLoadedDynamicMaps(LinkedList<String> list) {
        LinkedList<String> oldValue = m_lastLoadedDynamicMaps;
        m_lastLoadedDynamicMaps = list;
        firePropertyChange(SelectSuiteController.LAST_LOADED_DYNAMICMAPS_PROPERTY,
                oldValue,
                m_lastLoadedDynamicMaps);
    }

    /**
     * @return the m_selectedTestSuites
     */
    public LinkedList<String> getSelectedTestSuites() {
        return m_selectedTestSuites;
    }

    /**
     * @param m_selectedTestSuites the m_selectedTestSuites to set
     */
    public void setSelectedTestSuites(LinkedList<String> list) {
        LinkedList<String> oldValue = m_selectedTestSuites;
        m_selectedTestSuites = list;
        firePropertyChange(SelectSuiteController.SELECTED_TESTSUITES_PROPERTY,
                oldValue,
                m_selectedTestSuites);
    }

    /**
     * @return the m_selectedDynamicMaps
     */
    public LinkedList<String> getSelectedDynamicMaps() {
        return m_selectedDynamicMaps;
    }

    /**
     * @param m_selectedDynamicMaps the m_selectedDynamicMaps to set
     */
    public void setSelectedDynamicMaps(LinkedList<String> list) {
        LinkedList<String> oldValue = m_selectedDynamicMaps;
        m_selectedDynamicMaps = list;
        firePropertyChange(SelectSuiteController.SELECTED_DYNAMICMAPS_PROPERTY,
                oldValue,
                m_selectedDynamicMaps);
    }
}
